<div class="batch-second">
    <div class="details-collapse clearfix">
        <h3><span>batch<span class="createdVenueBatchCount create_venue_0_batchcounter" id="create_venue_0_batch_counter_0">1</span></span><span class="buttom-exp pull-right"><em class="sprite dw-arrow"></em></span> </h3>
    </div> 
    <div class="uncollapse clearfix">
        <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
            <label for="CourseBatche_date_from" class="required">Start Date<span class="required">*</span></label> 
            <input type="hidden" name="batchIndex[0][]" value="0">
            <input id="course_venue_0_batch_start_date_0" name="CourseBatche[ClassVenue][0][date_from][]" type="text" class="requiredfield hasDatepicker span2 form-control book-control" onkeyup="hasDatepicker(this.id);" onblur="checkValueEmpty(this.id)" onclick="hasDatepicker(this.id);" onchange="checkDate(this.id)" onpaste="return false;">
            <div class="errorMessage" id="error_course_venue_0_batch_start_date_0" style="display:none">Start date cannot be blank.</div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
            <label for="CourseBatche_date_to" class="required">End Date <span class="required">*</span></label>
            <input name="CourseBatche[ClassVenue][0][date_to][]" id="course_venue_0_batch_end_date_0" type="text" class="hasDatepicker requiredfield span2 form-control book-control" onkeyup="hasDatepicker(this.id)" onclick="hasDatepicker(this.id)" onpaste="return false;" onchange="checkDate(this.id)" onblur="checkValueEmpty(this.id)">
            <div class="errorMessage" id="error_course_venue_0_batch_end_date_0" style="display:none">End date cannot be blank.</div>
            <div class="errorMessage" id="enddate_course_venue_0_batch_end_date_0"></div>                                
        </div> 
        <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
            <label for="CourseBatche_price" class="required">Price <span class="required">*</span></label>
            <input name="CourseBatche[ClassVenue][0][price][]" id="course_venue_0_batch_price_0" type="text" onkeypress="return isNumberKey(event)" class="requiredfield span2 form-control book-control" onblur="checkValueEmpty(this.id)">
            <div class="errorMessage" id="error_course_venue_0_batch_price_0" style="display:none">Price cannot be blank.</div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
            <label for="CourseBatche_seats" class="required">Seats <span class="required">*</span></label>
            <input name="CourseBatche[ClassVenue][0][seats][]" id="course_venue_0_batch_seats_0" type="text" onkeypress="return isNumberKey(event)" class="requiredfield span2 form-control book-control" onblur="checkValueEmpty(this.id)">
            <div class="errorMessage" id="error_course_venue_0_batch_seats_0" style="display:none">Seats cannot be blank.</div>
        </div>
        <div class="batch-disc">
            <h4>Batch discounts:</h4>
            <?php /* .......................          Here is the early discount code start................ */ ?>
            <div id="venue_0_batch_0_earlydiscount"></div>
            <div class="form-group">
                <div class="col-lg-3 col-md-3 col-sm-3 column3 add-disc course-pdl">
                    <a href="javascript:void(0)" id="venue_0_batch_0_earlydiscount_0" onclick="addEarlyDiscount(this.id);">+ Add early discounts</a>                  
                </div>
            </div>
            <?php /* .......................          Here is the early discount code end................ */ ?>

            <?php /* .......................          Here is the group discount code start................ */ ?>
            <div id="venue_0_batch_0_groupdiscount"></div>
            <div class="form-group">
                <div class="col-lg-3 col-md-3 col-sm-3 column3 add-disc course-pdl">
                    <a href="javascript:void(0)" id="venue_0_batch_0_groupdiscount_0" onclick="addGroupDiscount(this.id);">+ Add group discount</a>
                </div>
            </div>
            <?php /* .......................          Here is the group discount code end ................ */ ?>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 course-pdl column12">
                    <div class="my-radio">
                        <input type="radio" class="fancyRadio" id="venue_0_batch_0_daySession_show_hide" name="days" checked="checked" onclick="showDateSessionAndDaySesion(this.id)">
                        <label for="venue_0_batch_0_daySession_show_hide">Days of the week</label>
                        <input type="radio" class="fancyRadio"  id="venue_0_batch_0_dateSession" name="days" onclick="showDateSessionAndDaySesion(this.id)"><label for="venue_0_batch_0_dateSession">Number of Sessions</label>
                    </div>
                </div>
            </div> 
        </div>
        <div class="batch-disc">
            <h4>Batch Session:</h4>
            <div class="venue_0_batch_0_daySession_show_hide">
                <div class="form-group">  
                    <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
                        <label for="course_venue_0_batch_0_daySession_schedule_id_0">Select day</label>
                        <span class="class-arrow12"></span>
                        <?php echo CHtml::dropDownList('CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][schedule_id][]', '', getAllSchedule('course'), array('empty' => 'Select Day', 'class' => 'form-control book-control courseselectBox requiredfield ClassDaySession_schedule_id_0', 'id' => 'course_venue_0_batch_0_daySession_schedule_id_0',)); ?>
                        <div class="errorMessage" id="error_course_venue_0_batch_0_daySession_schedule_id_0" style="display:none">Schedule cannot be blank.</div>
                                                
                    </div>
                    <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
                        <label for="b-stime">Start time:</label>
                        <div class="input-append bootstrap-timepicker time-sin">
                            <input onclick="hastimePicker(this.id)" onpaste="return false;" onblur="checkValueEmpty(this.id);"  name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][time_from][]" id="course_venue_0_batch_0_daySession_time_from_0" type="text" onkeypress="return isNumberKey(event)" onchange="timeCheck(this.id);" class="add-on book-control time-sin hastimePicker requiredfield" value="">
                            <div class="errorMessage" id="error_course_venue_0_batch_0_daySession_time_from_0" style="display:none">Start time cannot be blank.</div>
                        </div>                    
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6 course-pdr column6">
                        <div class="col-lg-7 col-md-7 col-sm-7 column6">
                            <label for="b-etime">End time:</label>
                            <div class="input-append bootstrap-timepicker time-sin">
                                <input name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][time_to][]" id="course_venue_0_batch_0_daySession_time_to_0" class="hastimePicker requiredfield  add-on book-control time-sin" onclick="hastimePicker(this.id)" onpaste="return false;" onblur="checkValueEmpty(this.id)" type="text"   size="10" value="" onchange="timeCheck(this.id);">
                                <div class="errorMessage" id="error_course_venue_0_batch_0_daySession_time_to_0" style="display:none">End time cannot be blank.</div>
                                <div class="errorMessage" id="endTime_course_venue_0_batch_0_daySession_time_to_0" ></div>
                            </div>
                        </div>
                        <div class="col-lg-5 col-md-5 col-sm-5 column5">
                            <div class="batch-flexible">
                                <input type="checkbox" class="isdaySesionFlexble" value="1" id="course_venue_0_batch_0_daySession_is_flexible_0"  name="CourseBatcheDaySessions[CourseBatche][' + batchIndex + '][ClassVenue][' + venueIndex + '][is_flexible][]"  onclick="datedaySesionisFlexble(this.id)"><label for="course_venue_0_batch_0_daySession_is_flexible_0"> Flexible </label>
                                <input type="hidden" name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][is_flexiblevalue][]" value="0" id="course_venue_0_batch_0_daySession_is_flexiblevalue_0"/>
                            </div> 
                        </div>                                           
                    </div>
                </div>
            </div>
            <div class="venue_0_batch_0_daySession"></div>
            <div class="venue_0_batch_0_daySession_addSesion">
                <div class="form-group">
                    <div class="col-lg-3 col-md-3 col-sm-3 add-disc course-pdl column3">
                        <a href="javascript:void(0);" onclick="addDaySession(this.id);" id="venue_0_batch_0_daySession_0">+ Add More</a>
                    </div>
                </div>
            </div>
            <div class="form-group  venue_0_batch_0_dateNoSession" style="display: none;">
                <div class="row">
                    <div class="col-lg-3 col-md-3 col-sm-3 course-pdl column3">
                        <label for="add-session">Add session:</label>
                        <input type="text" class="form-control book-control" name="CourseBatche[ClassVenue][0][no_of_session][]" id="no_of_session_venue_0_batch_0" onchange="dateSessionValue(this.id);" onkeyup=" dateSessionValue(this.id);" onkeypress="return isNumberKey(event);" placeholder="0" value="" maxlength="2" >
                        <div class="errorMessage" id="error_course_no_of_session_venue_0_batch_0" style="display:none">No of session cannot be blank.</div>
                    </div>
                    <div class="col-lg-9 col-md-9 col-sm-9 column9"></div>
                </div>
            </div>
            <div class="venue_0_batch_0_dateSession " style="display: none;">  </div>
        </div>
           <?php /* .......................         Here is the class structure code start................ */ ?>
        <div class="class-struct">
            <h4>class structure:</h4> 
            <?php $this->renderPartial('/classStructures/_classStructureform', array('form' => $form)); ?>  
        </div>
        <?php /* .......................         Here is the class structure code end................ */ ?>
    </div>
</div>